package cn.com.connected.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by sms on 2018/11/18.
 */
@Getter
@Setter
@Builder
public class RegDto {
    @NotEmpty(message = "请输入手机号")
    @ApiModelProperty(notes = "手机号")
    private String mobile;

    @NotNull(message = "请输入短信验证码")
    @ApiModelProperty(notes = "短信验证码")
    private Integer smsCode;

    @Tolerate
    public RegDto() {
    }
}
